import request from '@/utils/request'

export const TProcessList = () => {
	return request({
		url: '/development/v9/TProcess/List',
		method: 'get'
	})
}

export const btnSelectLeftListByMo = (mo) => {
	return request({
		url: '/plan/v9/bc/bench/btnSelectLeftListByMo',
		method: 'get',
		params: {
			mo,
		}
	})
}

export const getJobByJobId = (jobId) => {
	return request({
		url: '/plan/v9/bc/bench/getJobByJobId',
		method: 'get',
		params: {
			jobId,
		}
	})
}

export const EquiMachineToolList = (equipmentCode, workPeople) => {
	return request({
		url: '/development/v9/EquiMachineTool/List',
		method: 'get',
		params: {
			equipmentCode,
			workPeople
		}
	})
}

export const getBcWorkCenterByPartyId = (data) => {
	return request({
		url: '/development/v9/bcBenchJhController/getBcWorkCenterByPartyId',
		method: 'post',
		data: data
	})
}

export const receiveWork = (data) => {
	return request({
		url: '/plan/v9/bc/bench/receiveWork',
		method: 'post',
		data: data
	})
}

export const preEndWork = (data) => {
	return request({
		url: '/plan/v9/bc/bench/preEndWork',
		method: 'post',
		data: data,
		timeout: 10000 * 6
	})
}

export const startWork = (data) => {
	return request({
		url: '/plan/v9/bc/bench/startWork',
		method: 'post',
		data: data,
		timeout: 10000 * 6
	})
}

export const endWork = (data) => {
	return request({
		url: '/plan/v9/bc/bench/endWork',
		method: 'post',
		data: data,
		timeout: 10000 * 6
	})
}

export const transfer = (data) => {
	return request({
		url: '/plan/v9/surface/processPlan/transfer',
		method: 'post',
		data: data,
		timeout: 10000 * 6
	})
}

export const renovate = (data) => {
	return request({
		url: '/development/v9/BcJobEquipmentWorking/renovate',
		method: 'post',
		data: data,
		timeout: 10000 * 6
	})
}